import { request, METHOD } from "@/utils/request";
import {
  MATERIALSTAG,
  ADDMATERIALSTAG,
  DELMATERIALSTAG,
  UPDATEMATERIALSTAG
} from "./api";

export function list(params) {
  return request(MATERIALSTAG, METHOD.GET, params);
}
export function add(params) {
  return request(ADDMATERIALSTAG, METHOD.POST, params);
}
export function del(params) {
  return request(DELMATERIALSTAG, METHOD.POST, params);
}
export function update(params) {
  return request(UPDATEMATERIALSTAG, METHOD.POST, params);
}
